<?php 
session_start();

/*  echo '<pre>';
print_r($_SESSION); exit;
echo '</pre>'; */ 
if($_SESSION["loggedin"]==true && $_SESSION["role"]=="pm")
{
	if(isset($_SESSION["mgs"]))
	{ 
	echo $_SESSION["mgs"];
	unset($_SESSION["mgs"]); 
	}
echo 'test';
}
else
{
header('Location: login.php');
}


?>